(function (mt) {
    mt.pubcode = {
        getCurrentByCode: function (code, isupdate) {
            var result = "";
            var url = meeting.webSite.fullhost() + "/meeting/framework/pubcode/pubcodecommon/getcurrentvoucherbycode";
            meeting.ajax(url, function (data) {
                result = data.code;
            }, {
                async: false,
                data: {
                    code: code,
                    isupdate: isupdate ? isupdate : 0
                }
            }, null, 0);

            return result;
        }
    }
}(meeting))